package maneged;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import modal.Usuario;

import dao.UsuarioDAO;

@ManagedBean(name="LoginMB")
@SessionScoped
public class LoginMB implements Serializable{

	private static final long serialVersionUID = 1455334120804167428L;
	
	private String login;
	private String senha;
	
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getSenha() {
		return senha;
	}
	public void setSenha(String senha) {
		this.senha = senha;
	}
	
	public String efetuarLogin(){
		UsuarioDAO dao = new UsuarioDAO();
		Usuario user = dao.find(1, Usuario.class);
		
		System.out.println(user.toString());
		return "";
	}
	

}
